var bookStoreApp = angular.module('bookStoreApp', [
    'ngRoute', 'ngAnimate', 
    'bookStoreCtrls', 'bookStoreFilters', 'bookStoreServices', 'bookStoreDirectives'
]);

/*bookStoreApp.config(function($routeProvider){
    $routerProvider.when('/hello', {
        templateUrl: 'tpls/hello.html',
        controller: 'HelloCtrl'
    }).when('/list', {
        templateUrl: 'tpls/bookList.html',
        controller: 'BookListCtrl'
    }).otherwise({
        redirectTo: '/hello'
    });
});*/

bookStoreApp.config(function($routeProvider) {
    $routeProvider.when('/hello', {
        templateUrl: 'tpls/hello.html',
        controller: 'HelloCtrl'
    }).when('/list',{
        templateUrl:'tpls/bookList.html',
        controller:'BookListCtrl'
    }).otherwise({
        //redirectTo: '/hello'
        templateUrl:'tpls/index.html',
        controller:'IndexCtrl'
    })
});
